<div class="row">

  <div class="col-xs-12 col-sm-offset-3 col-sm-6">
    <div class="panel panel-info">
      <div class="panel-heading">
        <h2 class="panel-title"><%= t('.sign_in', :default => "Sign in") %></h2>
      </div>

      <div class="panel-body">
        <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
            <div class="form-group"><%= f.label :email %>
              <%= f.email_field :email, class: 'form-control' %></div>

            <div><%= f.label :password %>
              <%= f.password_field :password, class: 'form-control' %></div>

            <% if devise_mapping.rememberable? -%>
                <div class="checkbox">
                  <%= f.label :remember_me do %>
                    <%= f.check_box :remember_me %> <%= t 'activerecord.attributes.user.remember_me' %>
                  <% end %>
                </div>
            <% end -%>

            <div><%= f.submit t('.sign_in', :default => "Sign in"), class: 'btn btn-primary btn-block' %></div>
        <% end %>

        <%= render "devise/shared/links" %>
      </div>
    </div>
  </div>

</div>
